package com.cityos.android.mystudynestedscroll.ui.view

import android.content.Context
import android.util.AttributeSet
import android.view.MotionEvent
import android.widget.FrameLayout
import com.cityos.android.mystudynestedscroll.common.utils.LoggerUtils
import com.cityos.android.mystudynestedscroll.common.utils.MotionEventPrinter

/**
 * @author hailong
 * @date 2024年03月04日 09:26
 *
 *
 * You never know what you can do until you try !
 * ----------------------------------------------------------------
 */
class MyViewGroup @JvmOverloads constructor(context: Context , attrs: AttributeSet? = null) : FrameLayout(context , attrs) {


//    override fun dispatchTouchEvent(ev: MotionEvent?): Boolean {
//        LoggerUtils.justE("start-------------------->MyViewGroup.dispatchTouchEvent" , "MyViewGroup")
//        val a = super.dispatchTouchEvent(ev)
//        LoggerUtils.justE("end-------------------->MyViewGroup.dispatchTouchEvent = $a" , "MyViewGroup")
//        return a
//    }
//
//
//    override fun onInterceptTouchEvent(ev: MotionEvent?): Boolean {
//        LoggerUtils.justE("start-------------------->MyViewGroup.onInterceptTouchEvent:${MotionEventPrinter.getEventNameStr(ev)}" , "MyViewGroup")
//        val a = super.onInterceptTouchEvent(ev)
//        LoggerUtils.justE("end-------------------->MyViewGroup.onInterceptTouchEvent = $a:${MotionEventPrinter.getEventNameStr(ev)}" , "MyViewGroup")
//        return a
//    }
//
//
//    override fun onTouchEvent(event: MotionEvent?): Boolean {
//        LoggerUtils.justE("start-------------------->MyViewGroup.onTouchEvent:${MotionEventPrinter.getEventNameStr(event)}" , "MyViewGroup")
//        val a = super.onTouchEvent(event)
//        LoggerUtils.justE("end-------------------->MyViewGroup.onTouchEvent = $a :${MotionEventPrinter.getEventNameStr(event)}" , "MyViewGroup")
//        return a
//    }


}